package com.youmu.sichuansfc.domain;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

@Entity
@Table(name = "youmu_risk_op", schema = "youmu", catalog = "")
public class YoumuRiskOp {
    private Long id;
    private Date addTime;
    private String problemCode;
    private Long companyId;
    private String remark;

    public void setId(long id) {
        this.id = id;
    }


    public void setCompanyId(long companyId) {
        this.companyId = companyId;
    }

    @Id
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "add_time")
    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "problem_code")
    public String getProblemCode() {
        return problemCode;
    }

    public void setProblemCode(String problemCode) {
        this.problemCode = problemCode;
    }

    @Basic
    @Column(name = "company_id")
    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        YoumuRiskOp that = (YoumuRiskOp) o;
        return id == that.id &&
                companyId == that.companyId &&
                Objects.equals(addTime, that.addTime) &&
                Objects.equals(problemCode, that.problemCode) &&
                Objects.equals(remark, that.remark);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, addTime, problemCode, companyId, remark);
    }
}
